import request from '@/utils/request'

// 查询寄样列表
export function listSampledata(query) {
  return request({
    url: '/dr/sampledata/list',
    method: 'get',
    params: query
  })
}

// 查询寄样详细
export function getSampledata(id) {
  return request({
    url: '/dr/sampledata/' + id,
    method: 'get'
  })
}

// 新增寄样
export function addSampledata(data) {
  return request({
    url: '/dr/sampledata',
    method: 'post',
    data: data
  })
}

// 修改寄样
export function updateSampledata(data) {
  return request({
    url: '/dr/sampledata',
    method: 'put',
    data: data
  })
}

// 删除寄样
export function delSampledata(id) {
  return request({
    url: '/dr/sampledata/' + id,
    method: 'delete'
  })
}
